/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.icq.actions;

import javax.swing.AbstractAction;
import org.apache.log4j.Logger;
import ru.icq.gui.frame.FrameICQ;

/**
 * События формы.
 * @author Носов А.В.
 */
public abstract class AbstractJICQAction extends AbstractAction {

    // Variables declaration
    private static final Logger log = Logger.getLogger(AbstractJICQAction.class);
    private static final long serialVersionUID = 1L;
    private final FrameICQ component;
    // End of variables declaration

    public AbstractJICQAction(FrameICQ component) {
        this.component = component;
    }

    /**
     * Возвращает форму родителя.
     * @return главная "форма" проекта.
     */
    protected FrameICQ getComponent() {
        return component;
    }
}